#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author  : lei.wang
from fastapi import APIRouter

router_health = APIRouter(tags=["服务健康检查"])


@router_health.post("/health", description='检查服务健康状态是否能访问')
async def health_post():
    return {"status": "ok"}


@router_health.get("/health", description='检查服务健康状态是否能访问')
async def health_get():
    return {"status": "ok"}
